﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Policlinica
{
    public class MedService : BusinessObjectBase
    {
        private string _name;
        private double _price;

        public MedService()
        {

        }

        public MedService(int id, bool isDeleted, string name, double price):base(id, isDeleted)
        {
            _name = name;
            _price = price;
        }

        public MedService(string name, double price)
        {
            _name = name;
            _price = price;
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                if ((this._name != value))
                {
                    this._name = value;
                }
            }
        }

        public double Price
        {
            get
            {
                return this._price;
            }
            set
            {
                if ((this._price != value))
                {
                    this._price = value;
                }
            }
        }

        public override string ToString()
        {
            return Name;
        }

        
    }
	
}
